package dadonas.xmlpersistence;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 *
 * Used for all Collection classes and Arrays.
 * 
 * @author dadonas
 * 
 * @since 2011
 * 
 */

@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface XMLPersistenceCollection {
	
	/**
	 * Specify the tag name of the child elements.
	 * If not specified, the child tag name is the name of the XMLPersistenceType annotation of the child type.
	 * 
	 */
	public String childTagName() default "";
	
	/**
	 * If set as true, no tag is used to wrap the collection of child elements.
	 * 
	 */
	public boolean noTagForCollection() default false;
	
}
